Optimal. Leaf size=47 \[ -\frac {(a+2 b) \cosh (c+d x)}{d}+\frac {(a+b) \cosh ^3(c+d x)}{3 d}-\frac {b \text {sech}(c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3745, 459}
\begin {gather*} \frac {(a+b) \cosh ^3(c+d x)}{3 d}-\frac {(a+2 b) \cosh (c+d x)}{d}-\frac {b \text {sech}(c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 459
Rule 3745
Rubi steps
\begin {align*} \int \sinh ^3(c+d x) \left (a+b \tanh ^2(c+d x)\right ) \, dx &=\frac {\text {Subst}\left (\int \frac {\left (-1+x^2\right ) \left (a+b-b x^2\right )}{x^4} \, dx,x,\text {sech}(c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (-b+\frac {-a-b}{x^4}+\frac {a+2 b}{x^2}\right ) \, dx,x,\text {sech}(c+d x)\right )}{d}\\ &=-\frac {(a+2 b) \cosh (c+d x)}{d}+\frac {(a+b) \cosh ^3(c+d x)}{3 d}-\frac {b \text {sech}(c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 73, normalized size = 1.55 \begin {gather*} -\frac {3 a \cosh (c+d x)}{4 d}-\frac {7 b \cosh (c+d x)}{4 d}+\frac {a \cosh (3 (c+d x))}{12 d}+\frac {b \cosh (3 (c+d x))}{12 d}-\frac {b \text {sech}(c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(140\) vs.
\(2(45)=90\).
time = 1.75, size = 141, normalized size = 3.00
method | result | size |
risch | \(\frac {{\mathrm e}^{3 d x +3 c} a}{24 d}+\frac {{\mathrm e}^{3 d x +3 c} b}{24 d}-\frac {3 a \,{\mathrm e}^{d x +c}}{8 d}-\frac {7 b \,{\mathrm e}^{d x +c}}{8 d}-\frac {3 \,{\mathrm e}^{-d x -c} a}{8 d}-\frac {7 \,{\mathrm e}^{-d x -c} b}{8 d}+\frac {{\mathrm e}^{-3 d x -3 c} a}{24 d}+\frac {{\mathrm e}^{-3 d x -3 c} b}{24 d}-\frac {2 b \,{\mathrm e}^{d x +c}}{d \left (1+{\mathrm e}^{2 d x +2 c}\right )}\) | \(141\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 136 vs.
\(2 (45) = 90\).
time = 0.28, size = 136, normalized size = 2.89 \begin {gather*} -\frac {1}{24} \, b {\left (\frac {21 \, e^{\left (-d x - c\right )} - e^{\left (-3 \, d x - 3 \, c\right )}}{d} + \frac {20 \, e^{\left (-2 \, d x - 2 \, c\right )} + 69 \, e^{\left (-4 \, d x - 4 \, c\right )} - 1}{d {\left (e^{\left (-3 \, d x - 3 \, c\right )} + e^{\left (-5 \, d x - 5 \, c\right )}\right )}}\right )} + \frac {1}{24} \, a {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 91 vs.
\(2 (45) = 90\).
time = 0.37, size = 91, normalized size = 1.94 \begin {gather*} \frac {{\left (a + b\right )} \cosh \left (d x + c\right )^{4} + {\left (a + b\right )} \sinh \left (d x + c\right )^{4} - 4 \, {\left (2 \, a + 5 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (3 \, {\left (a + b\right )} \cosh \left (d x + c\right )^{2} - 4 \, a - 10 \, b\right )} \sinh \left (d x + c\right )^{2} - 9 \, a - 45 \, b}{24 \, d \cosh \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \tanh ^{2}{\left (c + d x \right )}\right ) \sinh ^{3}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 105 vs.
\(2 (45) = 90\).
time = 0.44, size = 105, normalized size = 2.23 \begin {gather*} \frac {a {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3} + b {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{3} - 12 \, a {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} - 24 \, b {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} - \frac {48 \, b}{e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}}}{24 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.17, size = 99, normalized size = 2.11 \begin {gather*} \frac {{\mathrm {e}}^{-3\,c-3\,d\,x}\,\left (a+b\right )}{24\,d}+\frac {{\mathrm {e}}^{3\,c+3\,d\,x}\,\left (a+b\right )}{24\,d}-\frac {{\mathrm {e}}^{c+d\,x}\,\left (3\,a+7\,b\right )}{8\,d}-\frac {{\mathrm {e}}^{-c-d\,x}\,\left (3\,a+7\,b\right )}{8\,d}-\frac {2\,b\,{\mathrm {e}}^{c+d\,x}}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________